File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/impl Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -418,6 +418,12 @@ private void actualInit() {
418
418
initState = INITIALIZING ;
419
419
getContext ().getLogger ().log (Level .FINEST , "Initializing: {0}" , this .getNameAsString ());
420
420
421
+ for (Field f : getInitialStaticFields ()) {
422
+ if (!f .isRemoved ()) {
423
+ initField (f );
424
+ }
425
+ }
426
+
421
427
var tls = getContext ().getLanguage ().getThreadLocalState ();
422
428
tls .blockContinuationSuspension ();
423
429
try {
@@ -477,11 +483,6 @@ private void prepare() {
477
483
try {
478
484
if (!isPrepared ()) {
479
485
checkLoadingConstraints ();
480
- for (Field f : getInitialStaticFields ()) {
481
- if (!f .isRemoved ()) {
482
- initField (f );
483
- }
484
- }
485
486
initState = PREPARED ;
486
487
if (getContext ().isMainThreadCreated ()) {
487
488
if (getContext ().shouldReportVMEvents ()) {
You can’t perform that action at this time.
0 commit comments