mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
update bootimage.cpp and heapwalk.cpp to reflect function renames
This commit is contained in:
parent
94ddb62b5f
commit
64d58bdb29
@ -14,7 +14,7 @@
|
||||
#include "machine.h"
|
||||
#include "util.h"
|
||||
#include "stream.h"
|
||||
#include "assembler.h"
|
||||
#include "codegen/assembler.h"
|
||||
#include "target.h"
|
||||
#include "binaryToObject/tools.h"
|
||||
#include "lzma.h"
|
||||
@ -31,7 +31,7 @@ namespace {
|
||||
const unsigned HeapCapacity = 512 * 1024 * 1024;
|
||||
|
||||
const unsigned TargetFixieSizeInBytes = 8 + (TargetBytesPerWord * 2);
|
||||
const unsigned TargetFixieSizeInWords = ceiling
|
||||
const unsigned TargetFixieSizeInWords = ceilingDivide
|
||||
(TargetFixieSizeInBytes, TargetBytesPerWord);
|
||||
const unsigned TargetFixieAge = 0;
|
||||
const unsigned TargetFixieFlags = 2;
|
||||
@ -787,7 +787,7 @@ targetSize(Thread* t, object typeMaps, object referer, unsigned refererOffset,
|
||||
{
|
||||
return (TargetBytesPerWord * 2)
|
||||
+ pad
|
||||
(ceiling
|
||||
(ceilingDivide
|
||||
(objectMaskCount
|
||||
(classTypeMap(t, typeMaps, referer)), 32) * 4, TargetBytesPerWord);
|
||||
} else {
|
||||
|
@ -228,7 +228,8 @@ inline object
|
||||
get(object o, unsigned offsetInWords)
|
||||
{
|
||||
return static_cast<object>
|
||||
(mask(fieldAtOffset<void*>(o, offsetInWords * BytesPerWord)));
|
||||
(maskAlignedPointer
|
||||
(fieldAtOffset<void*>(o, offsetInWords * BytesPerWord)));
|
||||
}
|
||||
|
||||
unsigned
|
||||
@ -297,7 +298,8 @@ class MyHeapWalker: public HeapWalker {
|
||||
Visitor(Context* c, HeapVisitor* v): c(c), v(v) { }
|
||||
|
||||
virtual void visit(void* p) {
|
||||
walk(c, v, static_cast<object>(mask(*static_cast<void**>(p))));
|
||||
walk(c, v, static_cast<object>
|
||||
(maskAlignedPointer(*static_cast<void**>(p))));
|
||||
}
|
||||
|
||||
Context* c;
|
||||
|
Loading…
Reference in New Issue
Block a user