Skip to content

Commit 326fedc

Browse files
committed
[Truffle] Initialize symbols earlier.
1 parent 9ae4641 commit 326fedc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

truffle/src/main/java/org/jruby/truffle/runtime/core/CoreLibrary.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ public void initialize() {
324324
initializeGlobalVariables();
325325
initializeConstants();
326326
initializeEncodingConstants();
327+
328+
// Common symbols
329+
eachSymbol = getContext().getSymbolTable().getSymbol("each");
327330
}
328331

329332
private void initializeGlobalVariables() {
@@ -412,10 +415,6 @@ private RubyModule defineModule(RubyModule lexicalParent, String name) {
412415
}
413416

414417
public void initializeAfterMethodsAdded() {
415-
// Common symbols
416-
417-
eachSymbol = getContext().getSymbolTable().getSymbol("each");
418-
419418
// Load Ruby core
420419

421420
if (Options.TRUFFLE_LOAD_CORE.load()) {

0 commit comments

Comments
 (0)