Skip to content

Commit

Permalink
Back VirtualField with a volatile field (open-telemetry#4355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek authored and RashmiRam committed May 23, 2022
1 parent 08ed683 commit 379f9da
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ public void visitEnd() {
if (!foundField) {
cv.visitField(
// Field should be transient to avoid being serialized with the object.
Opcodes.ACC_PRIVATE | Opcodes.ACC_TRANSIENT | Opcodes.ACC_SYNTHETIC,
Opcodes.ACC_PRIVATE
| Opcodes.ACC_VOLATILE
| Opcodes.ACC_TRANSIENT
| Opcodes.ACC_SYNTHETIC,
fieldName,
fieldType.getDescriptor(),
null,
Expand Down

0 comments on commit 379f9da

Please sign in to comment.