File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
main/java/org/truffleruby
shared/java/org/truffleruby/shared Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -151,18 +151,10 @@ public class RubyContext {
151
151
private final AssumedValue <Boolean > warningCategoryDeprecated ;
152
152
private final AssumedValue <Boolean > warningCategoryExperimental ;
153
153
154
- private static boolean preInitializeContexts = TruffleRuby .PRE_INITIALIZE_CONTEXTS ;
155
-
156
- private static boolean isPreInitializingContext () {
157
- boolean isPreInitializingContext = preInitializeContexts ;
158
- preInitializeContexts = false ; // Only the first context is pre-initialized
159
- return isPreInitializingContext ;
160
- }
161
-
162
154
public RubyContext (RubyLanguage language , TruffleLanguage .Env env ) {
163
155
Metrics .printTime ("before-context-constructor" );
164
156
165
- this .preInitializing = isPreInitializingContext ();
157
+ this .preInitializing = env . isPreInitialization ();
166
158
this .preInitialized = preInitializing ;
167
159
168
160
preInitializationManager = preInitializing ? new PreInitializationManager () : null ;
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ public class TruffleRuby {
23
23
public static final String BOOT_SOURCE_NAME = "main_boot_source" ;
24
24
public static final String RUBY_COPYRIGHT = "truffleruby - Copyright (c) 2013-" +
25
25
BuildInformationImpl .INSTANCE .getCopyrightYear () + " Oracle and/or its affiliates" ;
26
- public static final boolean PRE_INITIALIZE_CONTEXTS = System
27
- .getProperty ("polyglot.image-build-time.PreinitializeContexts" ) != null ;
28
26
29
27
public static String getVersionString (String implementationName ) {
30
28
final String buildName = BuildInformationImpl .INSTANCE .getBuildName ();
You can’t perform that action at this time.
0 commit comments