* Set DOTNET_GCHeapHardLimit on riscv64
Fixes: https://github.sec.samsung.net/dotnet/runtime/issues/655
* Update NativeLauncher/launcher/lib/core_runtime.cc
Co-authored-by: 최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
---------
Co-authored-by: 최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
// UNW_ARM_METHOD_EXIDX 0x04
putenv(const_cast<char *>("UNW_ARM_UNWIND_METHOD=6"));
#endif // __arm__
-
+#ifdef __riscv
+ // Set heap hard limit to 16G on riscv
+ putenv(const_cast<char *>("DOTNET_GCHeapHardLimit=400000000"));
+#endif // __riscv
// Enable diagnostics.
// clr create clr-debug-pipe-xxx and dotnet-diagnostics-xxx file under /tmp dir.
putenv(const_cast<char *>("COMPlus_EnableDiagnostics=1"));