* src/vm/jit/optimizing/recompile.c: Moved to .cpp.
[cacao.git] / src / native / vm / openjdk / jvm.cpp
index 43dc98f03f32f6cd7213fe01f91578a657091d3e..d39cb687fdb1c3784bf38715f2a9e9027e1cd3a6 100644 (file)
@@ -62,7 +62,7 @@
 #include "vm/array.h"
 
 #if defined(ENABLE_ASSERTION)
-#include "vm/assertion.h"
+#include "vm/assertion.hpp"
 #endif
 
 #include "vm/jit/builtin.hpp"
@@ -76,7 +76,7 @@
 #include "vm/os.hpp"
 #include "vm/package.hpp"
 #include "vm/primitive.hpp"
-#include "vm/properties.h"
+#include "vm/properties.hpp"
 #include "vm/resolve.h"
 #include "vm/signallocal.h"
 #include "vm/string.hpp"
@@ -285,11 +285,10 @@ jobject JVM_InitProperties(JNIEnv *env, jobject properties)
           -D option, as requested. */
 
        jio_snprintf(buf, sizeof(buf), PRINTF_FORMAT_INT64_T, opt_MaxDirectMemorySize);
-       properties_add("sun.nio.MaxDirectMemorySize", buf);
+       VM::get_current()->get_properties().put("sun.nio.MaxDirectMemorySize", buf);
 
-       /* Add all properties. */
-
-       properties_system_add_all(h);
+       // Fill the java.util.Properties object.
+       VM::get_current()->get_properties().fill(h);
 
        return properties;
 }
@@ -3634,4 +3633,5 @@ jint JVM_FindSignal(const char *name)
  * c-basic-offset: 4
  * tab-width: 4
  * End:
+ * vim:noexpandtab:sw=4:ts=4:
  */