[RFR]: Add test which does synchronization in native land

Man Cao manc at google.com
Tue Apr 23 21:06:08 UTC 2019


Is it better to add "static" to "pthread_mutex_t mutex"? It will make the
variable local to the module.
Also it seems all uses of PTHREAD_MUTEX_INITIALIZER in OpenJDK are for
static global variables.

Otherwise looks good. No need for another webrev for adding "static".

-Man


On Tue, Apr 23, 2019 at 11:46 AM Jean Christophe Beyler <jcbeyler at google.com>
wrote:

> LGTM
>
> On Tue, Apr 23, 2019 at 9:59 AM Arthur Eubanks <aeubanks at google.com>
> wrote:
>
> > http://cr.openjdk.java.net/~aeubanks/tsannativesync/webrev.00/index.html
> >
>
>
> --
>
> Thanks,
> Jc
>


More information about the tsan-dev mailing list