Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Fix stresslog - #1390

Merged
janvorli merged 1 commit into
dotnet:masterfrom
janvorli:fix-stresslog
Jun 9, 2016
Merged

janvorli merged 1 commit into
dotnet:masterfrom
janvorli:fix-stresslog

Conversation

@janvorli

@janvorli janvorli commented Jun 9, 2016

Copy link
Copy Markdown
Member

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.

@janvorli

janvorli commented Jun 9, 2016

Copy link
Copy Markdown
Member Author

@smosier can you take a look please?

Comment thread src/Native/gc/sample/CMakeLists.txt Outdated
include_directories(..)
include_directories(../env)

add_definitions(-DNO_STRESS_LOG)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@smosier

smosier commented Jun 9, 2016

Copy link
Copy Markdown
Contributor

LGTM, thanks for fixing this!

@janvorli
janvorli merged commit 5327685 into dotnet:master Jun 9, 2016
@janvorli
janvorli deleted the fix-stresslog branch June 9, 2016 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants