mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
use code allocator to allocate indirect caller
This commit is contained in:
parent
8e5ce11047
commit
13aaa14a41
@ -4595,10 +4595,6 @@ class MyProcessor: public Processor {
|
|||||||
|
|
||||||
s->handleSegFault(0);
|
s->handleSegFault(0);
|
||||||
|
|
||||||
if (indirectCaller) {
|
|
||||||
s->free(indirectCaller, indirectCallerSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
s->free(this, sizeof(*this));
|
s->free(this, sizeof(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4633,7 +4629,7 @@ processor(MyThread* t)
|
|||||||
|
|
||||||
p->indirectCallerSize = c->codeSize();
|
p->indirectCallerSize = c->codeSize();
|
||||||
p->indirectCaller = static_cast<uint8_t*>
|
p->indirectCaller = static_cast<uint8_t*>
|
||||||
(t->m->system->allocate(p->indirectCallerSize));
|
(p->codeAllocator.allocate(p->indirectCallerSize));
|
||||||
c->writeTo(p->indirectCaller);
|
c->writeTo(p->indirectCaller);
|
||||||
|
|
||||||
if (Verbose) {
|
if (Verbose) {
|
||||||
|
Loading…
Reference in New Issue
Block a user