Permalink
Browse files

[1.9] Ensure runtimeCache in script object gets inited, even if only …

…encodings are cached.
  • Loading branch information...
1 parent 9c2146a commit a189265af4d02ed260ad35327b592d3646c9b782 @headius headius committed with yokolet Jan 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/org/jruby/compiler/impl/InheritedCacheCompiler.java
@@ -494,7 +494,8 @@ public void finish() {
+ inheritedBlockBodyCount
+ inheritedBlockCallbackCount
+ inheritedMethodCount
- + inheritedStringCount;
+ + inheritedStringCount
+ + inheritedEncodingCount;
if (callSiteListSize + otherCount != 0) {
ensureRuntimeCacheInited(initMethod);

0 comments on commit a189265

Please sign in to comment.