[vmkit-commits] [PATCH] Always add bootclasspath, regardless of precompiled state
Will Dietz
wdietz2 at illinois.edu
Tue Oct 25 15:41:29 PDT 2011
Inlined below.
This patch does raise the following question:
When precompiling, is the goal/claim that *every* class offered from
the boot classpath is compiled?
If not, then this patch makes sense--if so, then I have some work to do :).
~Will
>From 8f6b60cc84257f808a11e888394f710180924bae Mon Sep 17 00:00:00 2001
From: Will Dietz <w at wdtz.org>
Date: Tue, 25 Oct 2011 17:36:21 -0500
Subject: [PATCH] Always use bootClasspathEnv regardless of precompiled.
---
lib/J3/VMCore/JnjvmClassLoader.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/J3/VMCore/JnjvmClassLoader.cpp
b/lib/J3/VMCore/JnjvmClassLoader.cpp
index acea822..dc8d0af 100644
--- a/lib/J3/VMCore/JnjvmClassLoader.cpp
+++ b/lib/J3/VMCore/JnjvmClassLoader.cpp
@@ -72,13 +72,13 @@
JnjvmBootstrapLoader::JnjvmBootstrapLoader(mvm::BumpPtrAllocator&
Alloc,
if (dlLoad) {
bootLoaded = Precompiled::Init(this);
}
-
+
+ // Analyze the boot classpath
+ analyseClasspathEnv(bootClasspathEnv);
+
if (!bootLoaded) {
classes = new(allocator, "ClassMap") ClassMap();
hashUTF8 = new(allocator, "UTF8Map") UTF8Map(allocator);
- // Analyze the boot classpath, we know bootstrap classes are not in the
- // executable.
- analyseClasspathEnv(bootClasspathEnv);
// Allocate the interfaces array for array classes, so that VT construction
// can use it right away.
--
1.7.5.1
More information about the vmkit-commits
mailing list