private void parseAndInitSVMaxHeapSize()

in sdk/host/src/main/java/org/apache/teaclave/javasdk/host/MockInSvmEnclaveConfigure.java [44:51]


    private void parseAndInitSVMaxHeapSize(String heapSize) {
        if (heapSize != null) {
            enclaveSVMMaxHeapSize = enclaveConfigure.getReferenceEnclaveMaxHeapSize();
            long confMaxHeapSize = Long.parseLong(heapSize) * MB;
            // make sure that svmMaxHeapSize should not larger than enclave_epc_memory * 0.8
            if (enclaveSVMMaxHeapSize > confMaxHeapSize) enclaveSVMMaxHeapSize = confMaxHeapSize;
        }
    }