Skip to content

[core] use one instead of two lookups within TClass::Init() - #14760

Closed
ferdymercury wants to merge 1 commit into
root-project:masterfrom
ferdymercury:classinit
Closed

[core] use one instead of two lookups within TClass::Init()#14760
ferdymercury wants to merge 1 commit into
root-project:masterfrom
ferdymercury:classinit

Conversation

@ferdymercury

Copy link
Copy Markdown
Collaborator

This Pull request:

Changes or fixes:

Fixes #7123

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

@phsft-bot

This comment was marked as outdated.

@ferdymercury

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@pcanal

This comment was marked as outdated.

Comment thread core/metacling/src/TCling.cxx
Comment thread core/metacling/src/TCling.cxx
Comment thread core/meta/src/TClass.cxx
@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

1 similar comment
@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-performance-centos8-multicore/soversion.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

@phsft-bot

Copy link
Copy Markdown

Build failed on mac12arm/cxx20.
Running on 194.12.161.128:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

@ferdymercury
ferdymercury requested a review from pcanal February 24, 2024 10:04
@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2024-02-24T10:08:15.566Z] FAILED: tmva/sofie/test/CMakeFiles/SofieCompileModels_ROOT.util

@ferdymercury

Copy link
Copy Markdown
Collaborator Author

Thanks for the review. I reverted to the original behavior as suggested, but the problem is still there.

Maybe the problem is that TClingClassInfo::TClingClassInfo(cling::Interpreter *interp, const Decl* decl) sets the decl found by CheckClassInfo, which was called without template instantiation. In contrast, TClingClassInfo::TClingClassInfo(cling::Interpreter *interp, const char *name, bool instantiateTemplate /* = true */) is (almost always) called with instantiateTemplate set to true (unless "IsUnloading").

So maybe this issue is a won't fix as the calls are fundamentally different and not reusable?

@phsft-bot

This comment was marked as outdated.

@github-actions

github-actions Bot commented Feb 24, 2024

Copy link
Copy Markdown

Test Results

     6 files      6 suites   2d 5h 28m 1s ⏱️
 2 730 tests   851 ✅   5 💤  1 874 ❌
15 624 runs  4 863 ✅ 372 💤 10 389 ❌

For more details on these failures, see this check.

Results for commit b56c8d3.

♻️ This comment has been updated with latest results.

@pcanal

pcanal commented Apr 5, 2024

Copy link
Copy Markdown
Member

trying to reset new CI

@pcanal pcanal closed this Apr 5, 2024
@pcanal pcanal reopened this Apr 5, 2024
@pcanal

pcanal commented Apr 5, 2024

Copy link
Copy Markdown
Member

@phsft-bot build

@ferdymercury

Copy link
Copy Markdown
Collaborator Author

trying to reset new CI

Maybe rebasing and force pushing does the trick?

@pcanal

pcanal commented Apr 5, 2024

Copy link
Copy Markdown
Member

Closing and reopening sorta worked: https://github.com/root-project/root/actions/runs/8574933039/job/23502827111?pr=14760 but the 'check' page is not seeing them. So far the failure are 'only' failed S3 connections.

@ferdymercury
ferdymercury marked this pull request as draft April 8, 2024 08:27
@ferdymercury ferdymercury changed the title [cling] use one instead of two lookups within TClass::Init() [core] use one instead of two lookups within TClass::Init() Apr 15, 2024
Comment thread core/meta/src/TClass.cxx Outdated
@ferdymercury

Copy link
Copy Markdown
Collaborator Author

Superseded by #23247

@ferdymercury
ferdymercury deleted the classinit branch September 4, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TClass::Init() does two lookups where one is enough

3 participants