diff --git a/core/src/main/java/org/jruby/internal/runtime/GlobalVariable.java b/core/src/main/java/org/jruby/internal/runtime/GlobalVariable.java index 8f419caaae7..a798e8552e9 100644 --- a/core/src/main/java/org/jruby/internal/runtime/GlobalVariable.java +++ b/core/src/main/java/org/jruby/internal/runtime/GlobalVariable.java @@ -97,6 +97,7 @@ public void removeTraces() { public void setAccessor(IAccessor accessor) { this.accessor = accessor; + this.invalidator.invalidate(); } public boolean isTracing() { return tracing;