tuned signature;
authorwenzelm
Sun May 13 16:37:36 2018 +0200 (12 months ago)
changeset 68169395432e7516e
parent 68168 a9b49430f061
child 68170 7e1daf6f2578
tuned signature;
src/Pure/Admin/build_log.scala
src/Pure/PIDE/session.scala
src/Pure/PIDE/xml.scala
src/Pure/System/isabelle_process.scala
src/Pure/Thy/sessions.scala
     1.1 --- a/src/Pure/Admin/build_log.scala	Sun May 13 16:33:11 2018 +0200
     1.2 +++ b/src/Pure/Admin/build_log.scala	Sun May 13 16:37:36 2018 +0200
     1.3 @@ -253,7 +253,7 @@
     1.4  
     1.5      /* properties (YXML) */
     1.6  
     1.7 -    val xml_cache = new XML.Cache()
     1.8 +    val xml_cache = XML.make_cache()
     1.9  
    1.10      def parse_props(text: String): Properties.T =
    1.11        try {
    1.12 @@ -881,7 +881,7 @@
    1.13  
    1.14    class Store private[Build_Log](options: Options)
    1.15    {
    1.16 -    val xml_cache: XML.Cache = new XML.Cache()
    1.17 +    val xml_cache: XML.Cache = XML.make_cache()
    1.18      val xz_cache: XZ.Cache = XZ.make_cache()
    1.19  
    1.20      def open_database(
     2.1 --- a/src/Pure/PIDE/session.scala	Sun May 13 16:33:11 2018 +0200
     2.2 +++ b/src/Pure/PIDE/session.scala	Sun May 13 16:37:36 2018 +0200
     2.3 @@ -118,7 +118,7 @@
     2.4  {
     2.5    session =>
     2.6  
     2.7 -  val xml_cache: XML.Cache = new XML.Cache()
     2.8 +  val xml_cache: XML.Cache = XML.make_cache()
     2.9    val xz_cache: XZ.Cache = XZ.make_cache()
    2.10  
    2.11  
     3.1 --- a/src/Pure/PIDE/xml.scala	Sun May 13 16:33:11 2018 +0200
     3.2 +++ b/src/Pure/PIDE/xml.scala	Sun May 13 16:37:36 2018 +0200
     3.3 @@ -154,7 +154,10 @@
     3.4  
     3.5    /** cache for partial sharing (weak table) **/
     3.6  
     3.7 -  class Cache(initial_size: Int = 131071, max_string: Int = 100)
     3.8 +  def make_cache(initial_size: Int = 131071, max_string: Int = 100): Cache =
     3.9 +    new Cache(initial_size, max_string)
    3.10 +
    3.11 +  class Cache private[XML](initial_size: Int, max_string: Int)
    3.12    {
    3.13      private val table =
    3.14        Collections.synchronizedMap(new WeakHashMap[Any, WeakReference[Any]](initial_size))
     4.1 --- a/src/Pure/System/isabelle_process.scala	Sun May 13 16:33:11 2018 +0200
     4.2 +++ b/src/Pure/System/isabelle_process.scala	Sun May 13 16:37:36 2018 +0200
     4.3 @@ -42,7 +42,7 @@
     4.4      cwd: JFile = null,
     4.5      env: Map[String, String] = Isabelle_System.settings(),
     4.6      receiver: Prover.Receiver = (msg: Prover.Message) => Output.writeln(msg.toString, stdout = true),
     4.7 -    xml_cache: XML.Cache = new XML.Cache(),
     4.8 +    xml_cache: XML.Cache = XML.make_cache(),
     4.9      sessions: Option[Sessions.Structure] = None,
    4.10      store: Sessions.Store = Sessions.store()): Prover =
    4.11    {
     5.1 --- a/src/Pure/Thy/sessions.scala	Sun May 13 16:33:11 2018 +0200
     5.2 +++ b/src/Pure/Thy/sessions.scala	Sun May 13 16:37:36 2018 +0200
     5.3 @@ -973,7 +973,7 @@
     5.4  
     5.5      /* SQL database content */
     5.6  
     5.7 -    val xml_cache = new XML.Cache()
     5.8 +    val xml_cache = XML.make_cache()
     5.9      val xz_cache = XZ.make_cache()
    5.10  
    5.11      def read_bytes(db: SQL.Database, name: String, column: SQL.Column): Bytes =