<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1054</bug_id>
          
          <creation_ts>2014-08-29 15:05:02 +0200</creation_ts>
          <short_desc>GLContext: makeCurrent() needs a null-check of [mutable] drawable; Review null checks and synchronization/locking.</short_desc>
          <delta_ts>2014-08-30 12:04:22 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>askinner</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>ad79bd072b600a3f2416cc6f0c61e2925000069d
dfb9ed47ac6d8e85f6ae5fe166e7a6e28ca8ff83
11347ad39059836f3e2a4f1fc592dc1e3fab6a09
da16dfd39cc17687808308c386d64f6206027c00</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4130</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-08-29 15:05:02 +0200</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4131</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-08-30 00:12:13 +0200</bug_when>
    <thetext>&apos;drawable&apos; field of GLContextImpl is mutable via setGLDrawable(..),
which requires high-level locking as documented.

The required high-level locking allows us to _not_ add special
synchronization to this field (and drawableRead).

A simple null-check in makeCurrent() shall be sufficient,
plus ensuring mentioned high-level locking is applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4132</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-08-30 00:22:14 +0200</bug_when>
    <thetext>11347ad39059836f3e2a4f1fc592dc1e3fab6a09

GLContextImpl &apos;drawable&apos; and &apos;drawableRead&apos; synchronization:
  - commit ad79bd072b600a3f2416cc6f0c61e2925000069d 
    check of null drawable is sufficient

  - Add GLAutoDrawable upstream-lock locking to:
    - AWT GLCanvas setupPrint/releasePrint
    - AWT GLJPanel (was missing)
    
Misc:
  - validate shared-context native-surface locking, 
    throw exception if not successful

  - pixelDataEvaluated does not need to be synchronized, 
    since it&apos;s being called while context is current, locking
      - GLDrawableHelper.recreateGLDrawable(..): Remove redundant glFinish() call</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>