a couple of tweaks to get Mac/Android tests passing

This commit is contained in:
Joel Dice 2014-09-02 10:14:04 -06:00
parent 58cbf5face
commit 6e209e2925
2 changed files with 8 additions and 6 deletions

View File

@ -236,10 +236,10 @@ ifneq ($(android),)
-DJNI_JARJAR_PREFIX= \
-D__DARWIN_UNIX03=1 \
-D__PROVIDE_FIXMES \
-DHAVE_OFF64_T \
-DSTATIC_LIB \
-g3 \
-Werror
-Werror \
-Wno-shift-count-overflow
luni-cpps := $(shell find $(luni-native) -name '*.cpp')
@ -285,6 +285,7 @@ ifneq ($(android),)
-lstdc++
ifeq ($(platform),linux)
android-cflags += -DHAVE_OFF64_T
classpath-lflags += -lrt
endif

View File

@ -254,13 +254,14 @@ class MyClasspath : public Classpath {
{
// force monitor creation so we don't get an OutOfMemory error
// later when we try to acquire it:
objectMonitor(t, t->javaThread, true);
objectMonitor(t, t->javaThread->lock(), true);
THREAD_RESOURCE0(t, {
vm::acquire(t, t->javaThread);
vm::acquire(t, t->javaThread->lock());
t->clearFlag(Thread::ActiveFlag);
vm::notifyAll(t, t->javaThread);
vm::release(t, t->javaThread);
t->javaThread->peer() = 0;
vm::notifyAll(t, t->javaThread->lock());
vm::release(t, t->javaThread->lock());
});
GcMethod* method = resolveMethod(