You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/10/17 14:15:38 UTC

[sling-org-apache-sling-models-impl] branch master updated (42dccf2 -> 7fa813a)

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-impl.git.


    from 42dccf2  trivial: added license header to *.md files
     add 5b47255  Fix SLING-7586 using SoftReferences and WeakHashMap Allows the GC to collect cached model instances, even when self-referenced to the original adaptable (e.g. via @Self)
     new 7fa813a  Merge pull request #9 from paul-bjorkstrand/fix/SLING-7586-model-cache-oom

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../sling/models/impl/ModelAdapterFactory.java     |  22 +-
 .../sling/models/impl/AdapterFactoryTest.java      |  48 +++-
 .../classes/CachedModelWithSelfReference.java      | 309 +++++++++++++++++++++
 3 files changed, 366 insertions(+), 13 deletions(-)
 create mode 100644 src/test/java/org/apache/sling/models/testmodels/classes/CachedModelWithSelfReference.java


[sling-org-apache-sling-models-impl] 01/01: Merge pull request #9 from paul-bjorkstrand/fix/SLING-7586-model-cache-oom

Posted by dk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-impl.git

commit 7fa813a6942ccde91cad91449b8a0be3ec5e4209
Merge: 42dccf2 5b47255
Author: Dan Klco <kl...@users.noreply.github.com>
AuthorDate: Wed Oct 17 10:15:33 2018 -0400

    Merge pull request #9 from paul-bjorkstrand/fix/SLING-7586-model-cache-oom
    
    Fix SLING-7586 using SoftReferences and WeakHashMap. Thanks for the PR @paul-bjorkstrand!

 .../sling/models/impl/ModelAdapterFactory.java     |  22 +-
 .../sling/models/impl/AdapterFactoryTest.java      |  48 +++-
 .../classes/CachedModelWithSelfReference.java      | 309 +++++++++++++++++++++
 3 files changed, 366 insertions(+), 13 deletions(-)