mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
fixes for various recent regressions
This commit is contained in:
parent
7caedba26f
commit
7ecb5b9c30
19
makefile
19
makefile
@ -156,24 +156,24 @@ args = $(flags) $(call class-name,$(input))
|
||||
.PHONY: build
|
||||
build: $(executable) $(classpath-objects) $(test-classes)
|
||||
|
||||
$(input): $(classpath-objects)
|
||||
$(input): $(classpath-classes)
|
||||
|
||||
.PHONY: run
|
||||
run: $(executable) $(input)
|
||||
$(ld-library-path)=$(bld) $(<) $(args)
|
||||
run: build
|
||||
$(ld-library-path)=$(bld) $(executable) $(args)
|
||||
|
||||
.PHONY: debug
|
||||
debug: $(executable) $(input)
|
||||
LD_LIBRARY_PATH=$(bld) gdb --args $(<) $(args)
|
||||
debug: build
|
||||
LD_LIBRARY_PATH=$(bld) gdb --args $(executable) $(args)
|
||||
|
||||
.PHONY: vg
|
||||
vg: $(executable) $(input)
|
||||
LD_LIBRARY_PATH=$(bld) $(vg) $(<) $(args)
|
||||
vg: build
|
||||
LD_LIBRARY_PATH=$(bld) $(vg) $(executable) $(args)
|
||||
|
||||
.PHONY: test
|
||||
test: $(executable) $(classpath-objects) $(test-classes)
|
||||
test: build
|
||||
LD_LIBRARY_PATH=$(bld) /bin/bash $(test)/test.sh 2>/dev/null \
|
||||
$(<) $(mode) "$(flags)" $(call class-names,$(test-classes))
|
||||
$(executable) $(mode) "$(flags)" $(call class-names,$(test-classes))
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@ -198,6 +198,7 @@ define compile-class
|
||||
@mkdir -p $(dir $(@))
|
||||
$(javac) -bootclasspath $(classpath) -classpath $(classpath) \
|
||||
-d $(cls) $(<)
|
||||
@touch $(@)
|
||||
endef
|
||||
|
||||
$(cls)/%.class: $(classpath)/%.java
|
||||
|
@ -668,10 +668,10 @@ gpRegister(Thread* t, unsigned index)
|
||||
}
|
||||
|
||||
SSERegister
|
||||
sseRegister(Thread* t, unsigned index)
|
||||
sseRegister(Thread* t UNUSED, unsigned index)
|
||||
{
|
||||
assert(t, index < 8);
|
||||
return static_cast<SSERegister>(index);
|
||||
return static_cast<SSERegister>(index);
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
@ -1524,7 +1524,7 @@ interpret(Thread* t)
|
||||
object a = popObject(t);
|
||||
|
||||
if (a == b) {
|
||||
ip = (ip - 3) + offset);
|
||||
ip = (ip - 3) + offset;
|
||||
}
|
||||
} goto loop;
|
||||
|
||||
|
@ -1465,6 +1465,9 @@ Thread::Thread(Machine* m, object javaThread, Thread* parent):
|
||||
|
||||
enter(t, Thread::ActiveState);
|
||||
|
||||
resolveClass
|
||||
(t, className(t, arrayBody(t, m->types,
|
||||
Machine::SystemClassLoaderType)));
|
||||
resolveClass
|
||||
(t, className(t, arrayBody(t, m->types, Machine::ClassType)));
|
||||
resolveClass
|
||||
@ -1482,7 +1485,9 @@ Thread::Thread(Machine* m, object javaThread, Thread* parent):
|
||||
(this, reinterpret_cast<int64_t>(this), 0, 0, 0, 0, m->loader);
|
||||
}
|
||||
|
||||
enter(this, Thread::IdleState);
|
||||
if (parent == 0) {
|
||||
enter(this, Thread::IdleState);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user