[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] CallStaticConstructor and currentMethod
From: |
Tim Nichols |
Subject: |
[Pnet-developers] CallStaticConstructor and currentMethod |
Date: |
Tue, 31 Jan 2006 21:13:38 -0800 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
Hi -
In CallStaticConstructor (as found in cvmc_call.c), there is the
following test:
if(cctor != ((ILCVMCoder *)coder)->currentMethod)
However, I could not find anywhere in the code where currentMethod is
being set, so the test always fails.
I made a change to set currentMethod in CVMEntryGen (cvmc_setup.c), and
I then see the above test succeed and thus omit outputting the call to
the static constructor.
It appears to work fine, but I'm not sure if this is safe or not.
Is this safe, or even correct?
Thanks.
- Tim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] CallStaticConstructor and currentMethod,
Tim Nichols <=