-
Notifications
You must be signed in to change notification settings - Fork 114
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
fixed kernel shutdown hanging #1131
Conversation
da7c1ae
to
08e4c58
Compare
modAionImpl/src/org/aion/zero/impl/blockchain/AionBlockchainImpl.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the second commit still necessary? Wouldn't the re-entrant lock prevent any deadlocks? Also, in the past there have been very big objections to expanding the ImportResult
enum.
@@ -202,6 +203,7 @@ | |||
|
|||
private SelfNodeStatusCallback callback; | |||
private BestBlockImportCallback bestBlockCallback; | |||
ReentrantLock blockChainCoreLock = new ReentrantLock(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: I would call it simply lock
modAionImpl/src/org/aion/zero/impl/blockchain/AionBlockchainImpl.java
Outdated
Show resolved
Hide resolved
modAionImpl/src/org/aion/zero/impl/blockchain/AionBlockchainImpl.java
Outdated
Show resolved
Hide resolved
modAionImpl/src/org/aion/zero/impl/blockchain/AionBlockchainImpl.java
Outdated
Show resolved
Hide resolved
modAionImpl/src/org/aion/zero/impl/blockchain/AionBlockchainImpl.java
Outdated
Show resolved
Hide resolved
modAionImpl/src/org/aion/zero/impl/blockchain/AionBlockchainImpl.java
Outdated
Show resolved
Hide resolved
LOG.debug("BestStakingBlock {}", bestStakingBlock.toString()); | ||
if (LOG.isDebugEnabled()) { | ||
LOG.debug("BestBlock {}", bestBlock.toString()); | ||
if (bestMiningBlock != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we omit the null checks and the .toString
in each of the messages?
Description
Fixes Issue # .
Type of change
Testing