Skip to content

Commit fbf65e4

Browse files
committed
Eliminate use of a hack.
1 parent 3326be2 commit fbf65e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vm/jvm/ModuleLoader.nqp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ knowhow ModuleLoader {
5454
try { my $hack; $boot_mode := %*COMPILING<%?OPTIONS><bootstrap>; }
5555
$boot_mode := !nqp::isnull($boot_mode) && $boot_mode;
5656
my $preserve_global := nqp::getcurhllsym('GLOBAL');
57-
__JVM__usecompileehllconfig() if $boot_mode;
57+
nqp::usecompileehllconfig() if $boot_mode;
5858
nqp::loadbytecode($path);
59-
__JVM__usecompilerhllconfig() if $boot_mode;
59+
nqp::usecompilerhllconfig() if $boot_mode;
6060
nqp::bindcurhllsym('GLOBAL', $preserve_global);
6161
%modules_loaded{$path} := $module_ctx := $*MAIN_CTX;
6262
}
@@ -156,9 +156,9 @@ knowhow ModuleLoader {
156156
try { my $hack; $boot_mode := %*COMPILING<%?OPTIONS><bootstrap>; }
157157
$boot_mode := !nqp::isnull($boot_mode) && $boot_mode;
158158
my $preserve_global := nqp::getcurhllsym('GLOBAL');
159-
__JVM__usecompileehllconfig() if $boot_mode;
159+
nqp::usecompileehllconfig() if $boot_mode;
160160
nqp::loadbytecode($path);
161-
__JVM__usecompilerhllconfig() if $boot_mode;
161+
nqp::usecompilerhllconfig() if $boot_mode;
162162
nqp::bindcurhllsym('GLOBAL', $preserve_global);
163163
unless nqp::defined($*MAIN_CTX) {
164164
nqp::die("Unable to load setting $setting_name; maybe it is missing a YOU_ARE_HERE?");

0 commit comments

Comments
 (0)