This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Fix stresslog - #1390
Merged
Merged
Fix stresslog#1390
Conversation
Member
Author
|
@smosier can you take a look please? |
| include_directories(..) | ||
| include_directories(../env) | ||
|
|
||
| add_definitions(-DNO_STRESS_LOG) |
Member
There was a problem hiding this comment.
Does this need to be defined for the sample project? As far as I can tell, it is only used in the runtime not it in the GC.
Member
Author
There was a problem hiding this comment.
Hmm, it must have been some temporary issue when I was making the change. It is not needed anymore.
The stresslog in corert was not working properly due to the dummy definition of the logging macros in gcenv.base.h. I have moved those dummy macros to the gcenv.h of the GC sample and modified gcenv.h of the runtime to include the stressLog.h. I also had to change two calls to Object::GetMethodTable in the logging macros to Object::GetGCSafeMethodTable, since Object in CoreRT doesn't contains GetMethodTable.
Contributor
|
LGTM, thanks for fixing this! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The stresslog in corert was not working properly due to the dummy definition of
the logging macros in gcenv.base.h. I have moved those dummy macros to the
gcenv.h of the GC sample and modified gcenv.h of the runtime to include the
stressLog.h.
I also had to change two calls to Object::GetMethodTable in the logging
macros to Object::GetGCSafeMethodTable, since Object in CoreRT doesn't
contains GetMethodTable.