8323058: Revisit j.l.classfile.CodeBuilder API surface

Reviewed-by: briangoetz, psandoz
This commit is contained in:
Adam Sotona 2024-05-02 10:08:29 +00:00
parent 286cbf831c
commit ae82405ff7
53 changed files with 725 additions and 876 deletions

View file

@ -83,8 +83,8 @@ class NativeMethodPrefixAgent {
byte[] newcf = Instrumentor.instrFor(classfileBuffer)
.addNativeMethodTrackingInjection(
"wrapped_" + trname + "_", (name, h) -> {
h.constantInstruction(name);
h.constantInstruction(transformId);
h.loadConstant(name);
h.loadConstant(transformId);
h.invokestatic(
CD_StringIdCallbackReporter,
"tracker",