-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Allocate RuntimeType objects on Frozen Object Heap #75573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9c15c1f
232033b
f63c941
841e9c7
f168d13
2f50121
3e6d3ba
c939027
c8512a9
bad7cc4
9d8526e
18e1cd4
a7fea6d
f2afedc
6a8cedf
677f94b
15bcad1
81bacbb
b5b7c98
608e6c9
be063b8
59af88b
a8e0786
1f9a348
2fd4384
8f2a767
b4b7128
a2ca5b1
fd099a2
64e7171
ac405a1
7ab7bd1
895e9f5
bcd47b1
c217579
253747e
ca6c69a
93ef525
7394e1e
f6055b9
57b1477
e9a396f
4fbb894
7476a68
bc2292b
7bf7e0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1617,9 +1617,30 @@ const char16_t* Compiler::eeGetShortClassName(CORINFO_CLASS_HANDLE clsHnd) | |
|
|
||
| void Compiler::eePrintFrozenObjectDescription(const char* prefix, size_t handle) | ||
| { | ||
| const int maxStrSize = 128; | ||
| const int maxStrSize = 64; | ||
| char16_t str[maxStrSize]; | ||
| int realLength = this->info.compCompHnd->objectToString((void*)handle, str, maxStrSize); | ||
| int realLength = this->info.compCompHnd->objectToString((void*)handle, str, maxStrSize); | ||
| if (realLength >= maxStrSize) | ||
| { | ||
| str[maxStrSize - 4] = L'.'; | ||
| str[maxStrSize - 3] = L'.'; | ||
| str[maxStrSize - 2] = L'.'; | ||
| str[maxStrSize - 1] = 0; | ||
| } | ||
| else | ||
| { | ||
| str[realLength] = 0; | ||
| } | ||
|
|
||
| for (size_t i = 0; i < min(maxStrSize, realLength); i++) | ||
| { | ||
| // Escape \n and \r symbols | ||
EgorBo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| if (str[i] == L'\n' || str[i] == L'\r') | ||
| { | ||
| str[i] = L' '; | ||
| } | ||
| } | ||
|
|
||
| if (realLength >= 0) | ||
EgorBo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| printf("%s '%S'\n", prefix, str); | ||
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.