mirror of
https://github.com/corda/corda.git
synced 2025-02-10 12:51:37 +00:00
increase bootimage.cpp heap and code size limits
OpenJDK is huge, so building a bootimage out of the whole thing (as opposed to an app shrunk using ProGuard) requires a lot of space. Note that we still can't handle this on ARM or PowerPC due to a limitation in the compiler, but we don't expect people to ship binaries with the entire OpenJDK class library anyway, so it shouldn't be a problem in practice.
This commit is contained in:
parent
48bb1e4f41
commit
ae2b58ee40
@ -25,7 +25,7 @@ using namespace vm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
const unsigned HeapCapacity = 256 * 1024 * 1024;
|
const unsigned HeapCapacity = 512 * 1024 * 1024;
|
||||||
|
|
||||||
const unsigned TargetFixieSizeInBytes = 8 + (TargetBytesPerWord * 2);
|
const unsigned TargetFixieSizeInBytes = 8 + (TargetBytesPerWord * 2);
|
||||||
const unsigned TargetFixieSizeInWords = ceiling
|
const unsigned TargetFixieSizeInWords = ceiling
|
||||||
@ -1667,7 +1667,11 @@ main(int ac, const char** av)
|
|||||||
// in a branch instruction for the target architecture (~32MB on
|
// in a branch instruction for the target architecture (~32MB on
|
||||||
// PowerPC and ARM). When that limitation is removed, we'll be able
|
// PowerPC and ARM). When that limitation is removed, we'll be able
|
||||||
// to specify a capacity as large as we like here:
|
// to specify a capacity as large as we like here:
|
||||||
|
#if (defined ARCH_x86_64) || (defined ARCH_x86_32)
|
||||||
|
const unsigned CodeCapacity = 128 * 1024 * 1024;
|
||||||
|
#else
|
||||||
const unsigned CodeCapacity = 30 * 1024 * 1024;
|
const unsigned CodeCapacity = 30 * 1024 * 1024;
|
||||||
|
#endif
|
||||||
|
|
||||||
uint8_t* code = static_cast<uint8_t*>(h->allocate(CodeCapacity));
|
uint8_t* code = static_cast<uint8_t*>(h->allocate(CodeCapacity));
|
||||||
BootImage image;
|
BootImage image;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user