profile
viewpoint
Éamonn McManus eamonnmcmanus Google San Francisco

GoogleCloudPlatform/functions-framework-java 51

FaaS (Function as a service) framework for writing portable Java functions

google/escapevelocity 18

A subset reimplementation of Apache Velocity with a much simpler API.

GoogleCloudPlatform/functions-framework-conformance 8

A Tool for Validating Conformance to the Functions Framework Contract

eamonnmcmanus/javapoet 3

A Java API for generating .java source files.

eamonnmcmanus/serialysis 2

from http://weblogs.java.net/blog/emcmanus/archive/2007/06/disassembling_s.html

ludoch/kotlin-java8 2

Devoxx 2017 demos for the session

eamonnmcmanus/auto 0

Snapshot of Builder API for AutoValue extensions. THIS IS SUBJECT TO CHANGE.

eamonnmcmanus/auto-value-gson 0

AutoValue Extension to add Gson De/Serializer support

eamonnmcmanus/gcloud-java 0

Google Cloud Client Library for Java

issue openedgoogle/guava

Synchronized usage of Concurrent Multi Hash Map

While looking for a Concurrent Multi Hash Map, I found Multimaps.synchronizedMultimap() wrapper which seems to be what I'm looking for. However, the documentation gives an example which I'm not picturing a situation when this might be useful: https://github.com/google/guava/blob/4709fe4d50cf5249b9e5e40fb8917c610831c317/guava/src/com/google/common/collect/Multimaps.java#L566-L583

My take is that put operations will still be outside this synchronized block. Am I getting it wrong?

I went to look for valid usages in the test suite, but only found one that didn't help me much understanding it.

My use case is that I don't really care for non-deterministic behavior as long as it does not result in a fail operation (e.g., throw an Exception). Even if this might not be an issue, I am still curious about a scenario where this should be employed.

created time in 5 hours

issue commentgoogleapis/google-cloud-java

Expose support for asynchronous interactions

Is there anything new with this?

Should we still work with GCS in a fully blocking manner? Or is there a solution?

Thanks

jboynes

comment created time in 6 hours

issue commentgoogle/guava

EventBus: Add options to enable ImmediateDispatcher

Actually I also found issue #3406 related to this problem now. The most problematic thing is only, that the abstract class Dispatcher is package visible. If the implementation of ImmediateDispatchercan be used or not, is not that important because the code is trivial and can easily be reimplemented by extending Dispatcher. I could also create a Pull request to fix this issue if this is OK and is accepted.

ckloner

comment created time in 20 hours

issue openedgoogle/guava

EventBus: Add options to enable ImmediateDispatcher

This ticket is almost the same as #2986 but deals with the EventBus instead of the AsycEventBus object.

I am using the EventBus object not as global object (static or singleton) but on a single instance per user session. In this scenario, instantiating for each EventBus instance an instance of PerThreadQueuedDispatcher with all the ThreadLocal variables does not make much sense. It would be better to have the possibility to use ImmediateDispatcher.INSTANCE by making Dispatcher.immediate() public - as well as changing the package visibility of the class Dispatcher to public. Changing the package visible constructor EventBus(String,Executor,Dispatcher,SubscriberExceptionHandler) would enable much more flexibility.

created time in 21 hours

issue commentgoogle/guava

Enable multiple Finalizers for FinalizableReferenceQueue

The data-structure of the Graph is given, we use the BinaryResource of the Eclipse Modelling Framework. But nevertheless thanks for the link, it looks interesting. Maybe it provides some good ideas (Since it seems to be abandon, it is probably not a good idea to use it directly).

Yes, that sounds reasonable. I'll have to think about it again and hopefully find a better solution. Thanks a lot for your help.

HannesWell

comment created time in a day

issue closedgoogle/compile-testing

[feature request] support assert generate multi source file.

My annotation processor generate multi file for a annotationed class. If I use com.google.testing.compile.CompilationSubject#generatedSourceFile to test it. It said:

expected to generate file: /io/github/vipcxj/beanknife/tests/otherbeans/TestBean1Meta.java
in location              : SOURCE_OUTPUT
it generated:
  /SOURCE_OUTPUT/io/github/vipcxj/beanKnfie/tests/otherbeans/TestBean1Meta.java
  /SOURCE_OUTPUT/io/github/vipcxj/beanknife/tests/beans/TestBean1Meta.java
  /SOURCE_OUTPUT/io/github/vipcxj/beanKnfie/tests/otherbeans/ViewOfTestBean1.java
  /SOURCE_OUTPUT/io/github/vipcxj/beanknife/tests/beans/ViewOfTestBean1.java

	at io.github.vipcxj.beanknife.tests.ViewMetaProcessorTest.testViewMetaCase(ViewMetaProcessorTest.java:50)
	at io.github.vipcxj.beanknife.tests.ViewMetaProcessorTest.testBean1(ViewMetaProcessorTest.java:18)

And I can't find a method to support this use case.

closed time in a day

vipcxj

issue commentgoogle/compile-testing

[feature request] support assert generate multi source file.

My fault, beanKnfie is not equal to beanknife

vipcxj

comment created time in a day

issue openedgoogle/compile-testing

[feature request] support assert generate multi source file.

My annotation processor generate multi file for a annotationed class. If I use com.google.testing.compile.CompilationSubject#generatedSourceFile to test it. It said:

expected to generate file: /io/github/vipcxj/beanknife/tests/otherbeans/TestBean1Meta.java
in location              : SOURCE_OUTPUT
it generated:
  /SOURCE_OUTPUT/io/github/vipcxj/beanKnfie/tests/otherbeans/TestBean1Meta.java
  /SOURCE_OUTPUT/io/github/vipcxj/beanknife/tests/beans/TestBean1Meta.java
  /SOURCE_OUTPUT/io/github/vipcxj/beanKnfie/tests/otherbeans/ViewOfTestBean1.java
  /SOURCE_OUTPUT/io/github/vipcxj/beanknife/tests/beans/ViewOfTestBean1.java

	at io.github.vipcxj.beanknife.tests.ViewMetaProcessorTest.testViewMetaCase(ViewMetaProcessorTest.java:50)
	at io.github.vipcxj.beanknife.tests.ViewMetaProcessorTest.testBean1(ViewMetaProcessorTest.java:18)

And I can't find a method to support this use case.

created time in a day

PR opened googleapis/google-cloud-java

change Random to SecureRandom

java.util.Random is not cryptographically secure. switch to SecureRandom.

+2 -2

0 comment

1 changed file

pr created time in a day

issue commentgoogle/guava

Enable multiple Finalizers for FinalizableReferenceQueue

A size-limited cache can use soft-references as a failsafe, but as you note it may not be good enough. If you persist on write rather than write on evict, then you won't have those finalization problems. And if your graph is layed out to be disk-friendly, the I/O read/write might not be expensive as the OS's buffer cache is keeping it too. A library that could be interesting (or not, I've never used it) is Netflix Graph.

Not knowing your use-case, my bias is to use a traditional cache and persist updates on a write. The cache's policy should make a good guess of what to evict, the application behavior will be more predictable, and you can use soft-references as a failsafe if low on memory.

HannesWell

comment created time in 2 days

issue commentgoogle/guava

Enable multiple Finalizers for FinalizableReferenceQueue

I was partly aware of what you've mentioned. Until some point it is desired that the SoftReference fill up the heap, because I want to avoid to unnecessarily write data to the drive in case they would have fit in the memory. On the other hand when it comes to the point that the memory is too small, I agree that frequent small GC-cycles are potentially slowing down the application. It a dilemma.

The problem I have with size limited or weighted Caches is that even it is likely that the Graphs stored in the DriveCache occupy the vast majority of memory of the JVM (even if it has many GiB) it still possible that some other part of our program also requires a significant amount of memory. Additionally the stored graphs can be relatively small or quite big, it depends on what exactly the user is doing. So a suitable size-limit, that neither causes to frequent writes nor too early out-of-memory errors, is de-facto impossible to guess. It depends on what the user is doing and on the user's machine.

What I have experienced so far is that the SoftReferences tend to be cleared too late, which is probably because the write and clear of the payload-data requires at least one more GC-cycle to really release some data and not only the wrapper around it. And that's probably also a problem for the GC because it does not know that finalizing the softly referenced value triggers the payload-data to be released later too. So I'm already some kind of disenchanted.

I already have implemented the option to use WeakReferences (maybe in conjunction with settings Xms to Xmx to avoid to often GC cycles). Alternatively I thought about a daemon thread that regularly monitors the JVM's memory load with Runtime.get???Memory() and 'manually' frees some data selected according to the LRU schema, if the used memory occupancy reaches a certain threshold (e.g. 90%). But this approach doesn't feel right.

HannesWell

comment created time in 2 days

issue commentgoogle/guava

Enable multiple Finalizers for FinalizableReferenceQueue

That makes sense. I’m sure you’re aware, but just in case, soft references have a bad reputation. They fill up the heap, require a full GC (STW pause) to collect, and cause GC storms because only enough memory is freed to continue the application. This caused mayhem in traditional collectors like CMS and global lru meant it wasn’t aware of what data was more costly to reload. Newer GCs are more aggressive, e.g. G1 is region based, so the negative impact might be more tolerable. This bad experience led to Guava switching from evangelizing reference collection to size-based caching using weighted values. Hopefully you don’t suffer these problems, but you might find the approach less useful than it originally seemed.

HannesWell

comment created time in 2 days

delete branch google/auto

delete branch : dependabot/maven/value/org.mockito-mockito-core-3.6.28

delete time in 2 days

pull request commentgoogle/auto

Bump mockito-core from 3.6.0 to 3.6.28 in /value

OK, I won't notify you again about this release, but will get in touch when a new version is available.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

dependabot[bot]

comment created time in 2 days

push eventgoogle/auto

dependabot[bot]

commit sha 22ff3f94b938fbe50d825b55b0848bd7d17d0d21

Bump mockito-core from 3.6.0 to 3.6.28 in /value Bumps [mockito-core](https://github.com/mockito/mockito) from 3.6.0 to 3.6.28. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">mockito-core's releases</a>.</em></p> <blockquote> <h2>v3.6.28</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.28</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.27...v3.6.28">1 commit(s)</a> by Szczepan Faber</li> <li>No notable improvements. No pull requests (issues) were referenced from commits.</li> </ul> <h2>v3.6.27</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.27</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.26...v3.6.27">1 commit(s)</a> by Szczepan Faber</li> <li>No notable improvements. No pull requests (issues) were referenced from commits.</li> </ul> <h2>v3.6.26</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.26</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.25...v3.6.26">2 commit(s)</a> by Szczepan Faber, sfaber</li> <li>Enabled releases to Maven Central [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2111">#2111</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2111">mockito/mockito#2111</a>)</li> </ul> <h2>v3.6.25</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.25</h4> <ul> <li>2020-11-24 - <a href="https://github.com/mockito/mockito/compare/v3.6.23...v3.6.25">4 commit(s)</a> by Holger, Szczepan Faber, shestee</li> <li>Keep META-INF folder at top of published mockito-core jar [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2109">#2109</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2109">mockito/mockito#2109</a>)</li> <li>JarInputStream fails to get Manifest from published mockito-core [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2108">#2108</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2108">mockito/mockito#2108</a>)</li> <li>Fixed incorrect comment type in properties file [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2107">#2107</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2107">mockito/mockito#2107</a>)</li> <li>Avoid CI failures in forks [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2106">#2106</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2106">mockito/mockito#2106</a>)</li> </ul> <h2>v3.6.23</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.23</h4> <ul> <li>2020-11-15 - <a href="https://github.com/mockito/mockito/compare/v3.6.22...v3.6.23">4 commit(s)</a> by Rafael Winterhalter, Tim van der Lippe</li> <li>Update to OpenJDK 15. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2051">#2051</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2051">mockito/mockito#2051</a>)</li> </ul> <h2>v3.6.22</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.22</h4> <ul> <li>2020-11-15 - <a href="https://github.com/mockito/mockito/compare/v3.6.19...v3.6.22">7 commit(s)</a> by Rafael Winterhalter, Szczepan Faber</li> <li>Avoided parallel workflow execution [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2103">#2103</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2103">mockito/mockito#2103</a>)</li> <li>Commit message directives for CI workflow [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2101">#2101</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2101">mockito/mockito#2101</a>)</li> <li>Improve error message if initializer fails. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2098">#2098</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2098">mockito/mockito#2098</a>)</li> </ul> <h2>v3.6.19</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mockito/mockito/commit/3e036f87d268af86e4aade24d2d67f1be391989d"><code>3e036f8</code></a> Force maven central release</li> <li><a href="https://github.com/mockito/mockito/commit/ce2f0b63aa97f0fbf726b4f0928662c6e5fd387d"><code>ce2f0b6</code></a> Fixed maven central releases</li> <li><a href="https://github.com/mockito/mockito/commit/98abe38177afc38c102bc8a6cb45bfbcf233272c"><code>98abe38</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2111">#2111</a> from mockito/mvn-central</li> <li><a href="https://github.com/mockito/mockito/commit/3213b49313749da62ee6ed75999161d629ca7292"><code>3213b49</code></a> Enabled releases to Maven Central</li> <li><a href="https://github.com/mockito/mockito/commit/fde5abb9f044a6b614eeb6a8c63d25fffe2df210"><code>fde5abb</code></a> Keep META-INF folder at top of published mockito-core jar (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2109">#2109</a>)</li> <li><a href="https://github.com/mockito/mockito/commit/78b22fcf814c33e87585afed387cd9db0b6d36a5"><code>78b22fc</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2106">#2106</a> from mockito/mockitoguy-patch-3</li> <li><a href="https://github.com/mockito/mockito/commit/2e4c214bd2e6660b1047c254ab13af7560f97372"><code>2e4c214</code></a> Fix incorrect comment type in properties file (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2107">#2107</a>)</li> <li><a href="https://github.com/mockito/mockito/commit/f5419b0638b6b517a7d29991bf29639988242335"><code>f5419b0</code></a> Avoid CI failures in forks</li> <li><a href="https://github.com/mockito/mockito/commit/f8d0f1bc0d6b1bd4fd0f5954a6a75782438ee968"><code>f8d0f1b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2051">#2051</a> from mockito/jdk15</li> <li><a href="https://github.com/mockito/mockito/commit/b8bb0f0905eb5434a35c8511fb4738548a9c9114"><code>b8bb0f0</code></a> Adjust build to support Java 15.</li> <li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v3.6.0...v3.6.28">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.mockito:mockito-core&package-manager=maven&previous-version=3.6.0&new-version=3.6.28)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Fixes #936 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/auto/pull/936 from google:dependabot/maven/value/org.mockito-mockito-core-3.6.28 e95af1cf333cf213427782f0c5bb014ac62ba168 PiperOrigin-RevId: 344247077

view details

push time in 2 days

PR closed google/auto

Bump mockito-core from 3.6.0 to 3.6.28 in /value cla: yes dependencies java

Bumps mockito-core from 3.6.0 to 3.6.28. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">mockito-core's releases</a>.</em></p> <blockquote> <h2>v3.6.28</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.28</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.27...v3.6.28">1 commit(s)</a> by Szczepan Faber</li> <li>No notable improvements. No pull requests (issues) were referenced from commits.</li> </ul> <h2>v3.6.27</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.27</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.26...v3.6.27">1 commit(s)</a> by Szczepan Faber</li> <li>No notable improvements. No pull requests (issues) were referenced from commits.</li> </ul> <h2>v3.6.26</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.26</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.25...v3.6.26">2 commit(s)</a> by Szczepan Faber, sfaber</li> <li>Enabled releases to Maven Central [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2111">#2111</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2111">mockito/mockito#2111</a>)</li> </ul> <h2>v3.6.25</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.25</h4> <ul> <li>2020-11-24 - <a href="https://github.com/mockito/mockito/compare/v3.6.23...v3.6.25">4 commit(s)</a> by Holger, Szczepan Faber, shestee</li> <li>Keep META-INF folder at top of published mockito-core jar [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2109">#2109</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2109">mockito/mockito#2109</a>)</li> <li>JarInputStream fails to get Manifest from published mockito-core [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2108">#2108</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2108">mockito/mockito#2108</a>)</li> <li>Fixed incorrect comment type in properties file [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2107">#2107</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2107">mockito/mockito#2107</a>)</li> <li>Avoid CI failures in forks [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2106">#2106</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2106">mockito/mockito#2106</a>)</li> </ul> <h2>v3.6.23</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.23</h4> <ul> <li>2020-11-15 - <a href="https://github.com/mockito/mockito/compare/v3.6.22...v3.6.23">4 commit(s)</a> by Rafael Winterhalter, Tim van der Lippe</li> <li>Update to OpenJDK 15. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2051">#2051</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2051">mockito/mockito#2051</a>)</li> </ul> <h2>v3.6.22</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.22</h4> <ul> <li>2020-11-15 - <a href="https://github.com/mockito/mockito/compare/v3.6.19...v3.6.22">7 commit(s)</a> by Rafael Winterhalter, Szczepan Faber</li> <li>Avoided parallel workflow execution [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2103">#2103</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2103">mockito/mockito#2103</a>)</li> <li>Commit message directives for CI workflow [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2101">#2101</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2101">mockito/mockito#2101</a>)</li> <li>Improve error message if initializer fails. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2098">#2098</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2098">mockito/mockito#2098</a>)</li> </ul> <h2>v3.6.19</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mockito/mockito/commit/3e036f87d268af86e4aade24d2d67f1be391989d"><code>3e036f8</code></a> Force maven central release</li> <li><a href="https://github.com/mockito/mockito/commit/ce2f0b63aa97f0fbf726b4f0928662c6e5fd387d"><code>ce2f0b6</code></a> Fixed maven central releases</li> <li><a href="https://github.com/mockito/mockito/commit/98abe38177afc38c102bc8a6cb45bfbcf233272c"><code>98abe38</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2111">#2111</a> from mockito/mvn-central</li> <li><a href="https://github.com/mockito/mockito/commit/3213b49313749da62ee6ed75999161d629ca7292"><code>3213b49</code></a> Enabled releases to Maven Central</li> <li><a href="https://github.com/mockito/mockito/commit/fde5abb9f044a6b614eeb6a8c63d25fffe2df210"><code>fde5abb</code></a> Keep META-INF folder at top of published mockito-core jar (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2109">#2109</a>)</li> <li><a href="https://github.com/mockito/mockito/commit/78b22fcf814c33e87585afed387cd9db0b6d36a5"><code>78b22fc</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2106">#2106</a> from mockito/mockitoguy-patch-3</li> <li><a href="https://github.com/mockito/mockito/commit/2e4c214bd2e6660b1047c254ab13af7560f97372"><code>2e4c214</code></a> Fix incorrect comment type in properties file (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2107">#2107</a>)</li> <li><a href="https://github.com/mockito/mockito/commit/f5419b0638b6b517a7d29991bf29639988242335"><code>f5419b0</code></a> Avoid CI failures in forks</li> <li><a href="https://github.com/mockito/mockito/commit/f8d0f1bc0d6b1bd4fd0f5954a6a75782438ee968"><code>f8d0f1b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2051">#2051</a> from mockito/jdk15</li> <li><a href="https://github.com/mockito/mockito/commit/b8bb0f0905eb5434a35c8511fb4738548a9c9114"><code>b8bb0f0</code></a> Adjust build to support Java 15.</li> <li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v3.6.0...v3.6.28">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+2 -2

0 comment

2 changed files

dependabot[bot]

pr closed time in 2 days

pull request commentGoogleCloudPlatform/getting-started-java

chore(deps): update dependency org.mockito:mockito-core to v3.6.28

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, or one of your required reviews was not approved. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

renovate-bot

comment created time in 2 days

issue commentgoogle/guava

Enable multiple Finalizers for FinalizableReferenceQueue

@netdpb thanks for the discussion.

@ben-manes that's a quite clever approach you use and I agree that avoiding the finalizer-thread-per-cache is definitely a benefit. Nevertheless in my use case the additional removal work (in my case writing data to drive) should be done as soon as possible.

I'm using my DriveCache as an extension to the RAM, that only writes data to the drive if the JVM tends to run out of memory. On this way more data can be processed and at the same time drive I/O is avoided as far as possible.

For the background: The DriveCache is used as a value storage (where each value is accessible by its key), that can write the "payload-data" of values to the drive and releases the memory of value and its payload, if the JVM tends to run out of memory. Therefore I'm using mainly SoftReferences for the values, but WeakReferences work too. When a new entry is add to the DriveCache a EntryMetadata-Object is created that has a Soft-/WeakReference to the value-Object and a strong reference to the values "payload-data". The Reference-Object also has a reference to the EntryMetadata-object. Then the key-object is put together with the EntryMetadata-object in the ConcurrentHashMap backing the cache. Once the Reference of an entry is enqueued into the ReferenceQueue of the Cache, the "payload-data" of the entry are written to drive and are then released so they can be garbage collected too. If the written value of a key is requested later, it is loaded from drive. If the memory pressure never becomes high no value-data are written and get(key) just returns the referent of the Soft-/WeakReference.

This only works if the value-object is a wrapper around its actual memory consuming payload-data object and that payload-data can be written to the drive without the value-object. As an example the keys could be some ID, and the values could be Objects of a FixedSizeArrayList class, where the backing array is always the same and can be accessed by the Cache-class (a special subclass is intended). So when the Garbage-Collector decides to finalize the FixedSizeArrayList-Object the DriveCache writes the content of the array to the drive and then releases its reference to the array, so it becomes eligible for garbage collection too. Of course this only works if the value-object and especially its payload-data are not permanently strongly referenced from somewhere else.

In my case the values are Graphs and the Program gets and ordinarily strongly references them from the DriveCache, if they are needed and just releases them when its done using them. So if the memory pressure becomes high in the meantime the Graph is written to drive, if not it just remains in the RAM.

On this way the Garbage-Collector de-facto manages if the cache should swap data to drive or not, just based on if a value is currently used or not and depending on the available RAM. So it is highly adaptive to the current environment without tweaking parameters manualy.

And because if the JVM runs out of memory I cannot wait a few more accesses for clean up. Because writing and releasing the payload-data requires one more GC-cycle already, this is time critical anyway. And for values that consume a signification portion of the overall RAM (e.g. 10%) it can be too late already and WeakReferences must be used.

HannesWell

comment created time in 2 days

issue commentgoogle/styleguide

Explain more - What is "rectangle rule"?

Thanks @guidimas It's good to have in the guideline doc itself too.

manoharreddyporeddy

comment created time in 2 days

PR opened google/auto

Bump mockito-core from 3.6.0 to 3.6.28 in /value

Bumps mockito-core from 3.6.0 to 3.6.28. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">mockito-core's releases</a>.</em></p> <blockquote> <h2>v3.6.28</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.28</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.27...v3.6.28">1 commit(s)</a> by Szczepan Faber</li> <li>No notable improvements. No pull requests (issues) were referenced from commits.</li> </ul> <h2>v3.6.27</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.27</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.26...v3.6.27">1 commit(s)</a> by Szczepan Faber</li> <li>No notable improvements. No pull requests (issues) were referenced from commits.</li> </ul> <h2>v3.6.26</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.26</h4> <ul> <li>2020-11-25 - <a href="https://github.com/mockito/mockito/compare/v3.6.25...v3.6.26">2 commit(s)</a> by Szczepan Faber, sfaber</li> <li>Enabled releases to Maven Central [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2111">#2111</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2111">mockito/mockito#2111</a>)</li> </ul> <h2>v3.6.25</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.25</h4> <ul> <li>2020-11-24 - <a href="https://github.com/mockito/mockito/compare/v3.6.23...v3.6.25">4 commit(s)</a> by Holger, Szczepan Faber, shestee</li> <li>Keep META-INF folder at top of published mockito-core jar [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2109">#2109</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2109">mockito/mockito#2109</a>)</li> <li>JarInputStream fails to get Manifest from published mockito-core [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2108">#2108</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2108">mockito/mockito#2108</a>)</li> <li>Fixed incorrect comment type in properties file [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2107">#2107</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2107">mockito/mockito#2107</a>)</li> <li>Avoid CI failures in forks [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2106">#2106</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2106">mockito/mockito#2106</a>)</li> </ul> <h2>v3.6.23</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.23</h4> <ul> <li>2020-11-15 - <a href="https://github.com/mockito/mockito/compare/v3.6.22...v3.6.23">4 commit(s)</a> by Rafael Winterhalter, Tim van der Lippe</li> <li>Update to OpenJDK 15. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2051">#2051</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2051">mockito/mockito#2051</a>)</li> </ul> <h2>v3.6.22</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>3.6.22</h4> <ul> <li>2020-11-15 - <a href="https://github.com/mockito/mockito/compare/v3.6.19...v3.6.22">7 commit(s)</a> by Rafael Winterhalter, Szczepan Faber</li> <li>Avoided parallel workflow execution [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2103">#2103</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2103">mockito/mockito#2103</a>)</li> <li>Commit message directives for CI workflow [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2101">#2101</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2101">mockito/mockito#2101</a>)</li> <li>Improve error message if initializer fails. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2098">#2098</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2098">mockito/mockito#2098</a>)</li> </ul> <h2>v3.6.19</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mockito/mockito/commit/3e036f87d268af86e4aade24d2d67f1be391989d"><code>3e036f8</code></a> Force maven central release</li> <li><a href="https://github.com/mockito/mockito/commit/ce2f0b63aa97f0fbf726b4f0928662c6e5fd387d"><code>ce2f0b6</code></a> Fixed maven central releases</li> <li><a href="https://github.com/mockito/mockito/commit/98abe38177afc38c102bc8a6cb45bfbcf233272c"><code>98abe38</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2111">#2111</a> from mockito/mvn-central</li> <li><a href="https://github.com/mockito/mockito/commit/3213b49313749da62ee6ed75999161d629ca7292"><code>3213b49</code></a> Enabled releases to Maven Central</li> <li><a href="https://github.com/mockito/mockito/commit/fde5abb9f044a6b614eeb6a8c63d25fffe2df210"><code>fde5abb</code></a> Keep META-INF folder at top of published mockito-core jar (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2109">#2109</a>)</li> <li><a href="https://github.com/mockito/mockito/commit/78b22fcf814c33e87585afed387cd9db0b6d36a5"><code>78b22fc</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2106">#2106</a> from mockito/mockitoguy-patch-3</li> <li><a href="https://github.com/mockito/mockito/commit/2e4c214bd2e6660b1047c254ab13af7560f97372"><code>2e4c214</code></a> Fix incorrect comment type in properties file (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2107">#2107</a>)</li> <li><a href="https://github.com/mockito/mockito/commit/f5419b0638b6b517a7d29991bf29639988242335"><code>f5419b0</code></a> Avoid CI failures in forks</li> <li><a href="https://github.com/mockito/mockito/commit/f8d0f1bc0d6b1bd4fd0f5954a6a75782438ee968"><code>f8d0f1b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2051">#2051</a> from mockito/jdk15</li> <li><a href="https://github.com/mockito/mockito/commit/b8bb0f0905eb5434a35c8511fb4738548a9c9114"><code>b8bb0f0</code></a> Adjust build to support Java 15.</li> <li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v3.6.0...v3.6.28">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+2 -2

0 comment

2 changed files

pr created time in 2 days

PR opened GoogleCloudPlatform/getting-started-java

chore(deps): update dependency org.mockito:mockito-core to v3.6.28

WhiteSource Renovate

This PR contains the following updates:

Package Update Change
org.mockito:mockito-core patch 3.6.0 -> 3.6.28

Release Notes

<details> <summary>mockito/mockito</summary>

v3.6.28

Compare Source

<sup><sup>Changelog generated by Shipkit Changelog Gradle Plugin</sup></sup>

3.6.28
  • 2020-11-25 - 1 commit(s) by Szczepan Faber
  • No notable improvements. No pull requests (issues) were referenced from commits.

</details>


Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Never, or you tick the rebase/retry checkbox.

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

+1 -1

0 comment

1 changed file

pr created time in 2 days

PR opened google/compile-testing

Added annotation processor path to Compiler

Added annotation processor path to Compiler

RELNOTES=Add withAnnotationProcessorPath() to Compiler.

+139 -16

0 comment

3 changed files

pr created time in 3 days

create barnchgoogle/compile-testing

branch : test_343869841

created branch time in 3 days

push eventgoogle/guava

travis-ci

commit sha 2f6c5539f022841a387a5dd10807aab8b0683abf

Generate Javadoc and JDiff for Guava HEAD-jre-SNAPSHOT

view details

push time in 3 days

push eventgoogle/guava

travis-ci

commit sha dcd1ca1316adcce814fb7f08f247581be035123b

Generate Javadoc and JDiff for Guava HEAD-jre-SNAPSHOT

view details

push time in 3 days

delete branch google/guava

delete branch : sync-master-2020/11/24

delete time in 3 days

push eventgoogle/guava

pferaud

commit sha 4709fe4d50cf5249b9e5e40fb8917c610831c317

Internal change. RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=344065888

view details

push time in 3 days

PR merged google/guava

MOE Sync 2020-11-24 cla: yes internal-sync

This code has been reviewed and submitted internally. Feel free to discuss on the PR, and we can submit follow-up changes as necessary.

Commits:

<p> Internal change.

412db47018be7ccee39905468f65cd1f7b9f0eb2

+25 -0

0 comment

16 changed files

cpovirk

pr closed time in 3 days

more