Giter Club home page Giter Club logo

Comments (3)

TarryHoo avatar TarryHoo commented on May 22, 2024

@Sheamus2340 这个method 少了synchronized 关键字。
private static synchronized void method() {
}

from java-concurrency.

lxx9816 avatar lxx9816 commented on May 22, 2024

原文:从上图中就可以看出来,执行静态同步方法的时候就只有一条monitorexit指令,并没有monitorenter获取锁的指令。
问题:monitorexit不是执行静态同步方法时候的指令,应该是同步代码块执行异常时会执行的指令。如果同步代码块执行正常,就会执行了goto指令然后直接跳转去执行了invokestatic指令(静态方法)。

from java-concurrency.

zero9230 avatar zero9230 commented on May 22, 2024

这一节图片挂了好多,能给补一下么?感谢大佬

from java-concurrency.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.